import Vue from 'vue';
import App from './App.vue';
import store from './../../../store';
import "./../../../utils/permission";
import "./../../../plugins";
import "@/assets/styles/common.scss";

import BetterScroll from "@/components/better-scroll/index";
//复制到粘贴板插件
import VueClipboard from "vue-clipboard2";

// 调试
// import Vconsole from "vconsole"
// let vConsole = new Vconsole();
// export default vConsole;

// 注册全局组件
Vue.component("BetterScroll", BetterScroll)

VueClipboard.config.autoSetContainer = true;
Vue.use(VueClipboard);



Vue.config.productionTip = false;

if (process.env.NODE_ENV === 'production') {
    window.apiready = () => {
        new Vue({
            store,
            render: h => h(App)
        }).$mount('#app');
    }
} else {
    new Vue({
        store,
        render: h => h(App)
    }).$mount('#app');
}
